package com.skt.exception;

public class ValidationException extends BaseException {
    
    public ValidationException(ErrorCode errorCode) {
        super(errorCode);
    }
    
    public ValidationException(int code, String message) {
        super(code, message);
    }
    
    public ValidationException(ErrorCode errorCode, String customMessage) {
        super(errorCode, customMessage);
    }
    
    // ========== 通用创建方法 ==========
    public static ValidationException of(ErrorCode errorCode) {
        return new ValidationException(errorCode);
    }
    
    public static ValidationException of(ErrorCode errorCode, String customMessage) {
        return new ValidationException(errorCode, customMessage);
    }
    
    public static ValidationException of(int code, String message) {
        return new ValidationException(code, message);
    }
}